<template>
  <div class="home">
    <!-- <img alt="Vue logo" src="../assets/logo.png"> -->
    <router-link to="/home/news">新闻</router-link>
    <router-link to="/home/message">消息</router-link>

    <router-view></router-view>

    <h4>{{msg}}</h4>
  </div>
</template>

<script>


export default {
  name: 'Home',
  data() {
    return {
      msg:"你好",
      path:"/home/news"
    }
  },
  created() {
    console.log("created");
  },
  //vue3里面的销毁
  unmounted(){
    console.log("destroyed");
  },
 
  components: {
    
  }
}
</script>
